import request from '@/utils/request';

export function queryApply(i,query){//查询未处理或者已处理的采购申请   state=0未处理，1已处理
  return request({
    url: '/purchase/queryApply/'+i,
    method: 'get',
    params: query //pageNo=xxx&pageSize=xxx
  });
};

export function applyIn(query){//采购请求将货物入库
  return request({
    url: '/purchase/applyIn/'+query,
    method: 'get',
    // params: query
  });
};

export function purchasedo(id,decide,query){//采购请求审核
  return request({
    url: '/purchase/do/'+id+'/'+decide,//0或1（0驳回，1确认采购）
    method: 'get',
    params: query//reason //驳回理由
  });
};





